#include <PhysicsServer.h>
Public Member Functions | |
| virtual | ~PhysicsServer () |
| bool | init (int groundSizeX, int groundSizeY) |
| void | shutdown () |
| void | setCrashId (int soundId) |
| bool | registerClient (PhysicsClient *client) |
| bool | update (double step) |
Static Public Member Functions | |
| static PhysicsServer * | getInstance () |
| static void | collisionCallback (void *data, dGeomID o1, dGeomID o2) |
Protected Attributes | |
| int | sound_id |
| int | kacKez |
| dWorldID | _world |
| dSpaceID | _space |
| dJointGroupID | _contactgroup |
| dSpaceID | _envSpace |
| dGeomID | _ground |
| vector< dGeomID > | crashedGeomIds |
Private Member Functions | |
| PhysicsServer () | |
| void | checkCollision (void *data, dGeomID o1, dGeomID o2) |
Private Attributes | |
| vector< PhysicsClient * > | _clientList |
Static Private Attributes | |
| static PhysicsServer | _instance |
|
|
A destructor. |
|
|
A constructor. |
|
||||||||||||||||
|
|
|
||||||||||||||||
|
a static member taking three argument and returning void.
|
|
|
|
|
||||||||||||
|
a normal member taking two arguments and returning a bool value.
|
|
|
a normal member taking one argument and returning a bool value.
|
|
|
|
|
|
a normal member. destroy physical world, space and joint groups |
|
|
a normal member taking one argument and returning a bool value.
|
|
|
a private member. list of physical clients |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
a protected variable. id of the physical space |
|
|
a protected variable. id of the physical world |
|
|
|
|
|
|
|
|
|
1.4.6-NO